package com.example.cafe.work.service;

import com.example.cafe.work.dto.OrderDisplay;
import com.example.cafe.work.dto.Result;
import com.example.cafe.work.model.Coffee;
import com.example.cafe.work.model.Order;
import com.example.cafe.work.model.Userinfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hua
 * @since 2024-09-16
 */
public interface UserinfoService extends IService<Userinfo> {

    Result Recharge(String userId, int money);

    Result Consume(List<Order> orders);

    Result ChargeBack(List<OrderDisplay> orders);
}
